package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Section;
import cn.edu.bcu.ls.entity.SectionParams;
import cn.edu.bcu.ls.mapper.SectionMapper;
import cn.edu.bcu.ls.serviceImpl.SectionService;

@Service
public class SectionServiceImpl implements SectionService{

    @Resource
    private SectionMapper sectionMapper;

    @Override
    public int deleteByPrimaryKey(Integer sId) {
        return sectionMapper.deleteByPrimaryKey(sId);
    }

    @Override
    public int insert(Section record) {
        return sectionMapper.insert(record);
    }

    @Override
    public int insertSelective(Section record) {
        return sectionMapper.insertSelective(record);
    }

    @Override
    public Section selectByPrimaryKey(Integer sId) {
        return sectionMapper.selectByPrimaryKey(sId);
    }

    @Override
    public int updateByPrimaryKeySelective(Section record) {
        return sectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Section record) {
        return sectionMapper.updateByPrimaryKey(record);
    }

	@Override
	public List<Section> selectBysIdcId(SectionParams sectionParams) {
		// TODO Auto-generated method stub
		return sectionMapper.selectBysIdcId(sectionParams);
	}

	@Override
	public List<Section> selectBycId(Integer c_id) {
		// TODO Auto-generated method stub
		return sectionMapper.selectBycId(c_id);
	}

	

}
